﻿@model PagedResult<user_exchange_product_his_dto>
@{ var img_url = ViewBag.img_url; var phone = ViewBag.service_phone;}
@{
    if (Model.rows.Count > 0) {
        foreach (var item in Model.rows) {
            <div class="conversion_dh">
                <div class="img">
                    <img src="@(img_url+item.product_img_url)" alt="">
                </div>
                <div class="rg">
                    <p class="title">@item.product_title</p>
                    <p class="time">兑换：@item.consume_red_drill</p>
                    <p class="time">@item.create_time.ToString("yyyy-MM-dd HH:mm")</p>
                    <div class="win">
                        @if (item.status != 2) {
                    <label class="cg">兑换成功</label>
                    <span class="lx" onclick="location.href='tel:@phone'">联系客服</span>
} else {
                    <label class="sb">兑换失败</label>
                    <span class="js">结束兑换</span>
}


                    </div>
                </div>
            </div>
        }
    }

    <page rows="@Model.rows.Count()" total_result="@Model.total_result"></page>
}
